package com.common.db.dao.impl;

import com.common.db.dao.BaseDao;
import com.common.db.dao.UserDAO;
import com.common.db.model.UserVO;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by cdyizuoming on 2017/3/16.
 */
@Component
public class UserDaoImpl extends BaseDao implements UserDAO {

    public List<UserVO> findUsers() {
        return this.getSqlSession().selectList("user.findUsers");
    }

    public Integer addUser(UserVO userVO) {
        return this.getSqlSession().insert("user.addUser",userVO);
    }
}
